/*
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-06-03 15:08:27
 * @LastEditors: Silence
 * @LastEditTime: 2023-06-07 14:37:35
 */
const KEY = 'token'

// 直接用按需导出，可以导出多个
// 但是按需导出，导入时必须 import { getToken } from '模块名导入'

// 获取
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 设置
export const setToken = (newToken) => {
  localStorage.setItem(KEY, newToken)
}

// 删除
export const delToken = () => {
  localStorage.removeItem(KEY)
}
